<%@ page language="java" import="java.util.*" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>客户查询管理</title>
<meta name="decorator" content="default" />
<meta charset="utf-8">
<script type="text/javascript" charset="utf-8">
	$(document).ready(
			function() {
				$("#addContactRecords").submit(function(){
					loading("正在加载!请稍后");
				});
				//获得当前客户的收藏者ID
				var collecterId = "${collecterId}";
				//获得当前用户的ID
				var userId = "${fns:getUser().id}";

				//如果收藏者ID不等于用户ID，则隐藏所有修改操作
				if (collecterId == "" || collecterId.length <= 0
						|| collecterId != userId) {
					$(".isCollecter").css("display", "none");
				}
				if (collecterId != "") {
					$("#myBtn_AddMyCollect").css("display", "none");
				}

				$("#inputForm")
						.validate(
								{
									submitHandler : function(form) {
										loading('正在提交，请稍等...');
										form.submit();
									},
									errorContainer : "#messageBox",
									errorPlacement : function(error, element) {
										$("#messageBox").text("输入有误，请先更正。");
										if (element.is(":checkbox")
												|| element.is(":radio")
												|| element.parent().is(
														".input-append")) {
											error.appendTo(element.parent()
													.parent());
										} else {
											error.insertAfter(element);
										}
									}
								});
				$("#industryId").change(function() {
					var industryId = $("#industryId").val();
					var customerId = $("#customerId").val();
					$.ajax({
						type : "post",
						url : "${ctx}/crm/findcustomer/findCustomer/isExist",
						data : {
							"customerId" : customerId,
							"industryId" : industryId
						},
						success : function(data) {
							if (data == "true") {
								$("#isExist").show();
								$("#isAllow").val("false");
							} else {
								$("#isAllow").val("true");
								$("#isExist").hide();
							}
						}
					})
				});
				var industrys = $("#industryTable tr").length - 1;
				if (industrys <= 1) {
					$("#deleteIndustry").css("display", "none");
					$("#industryCaoZuo").css("display", "none");
				}

				var addresses = $("#addressTable tr").length - 1;
				if (addresses <= 1) {
					$("#addressCaoZuo").css("display", "none");
					$("#deleteAddressTd").css("display", "none");
				}

				$("#updateAddressAB").submit(function() {
					if ($("#addressIn").val() != "") {
						//即将加入的地址
						var soonAddress = $("#addressIn").val() + ",";
						//加入前的地址
						var beforeAddress = "${findCustomer.address}";
						//最终的地址
						var afterAddress = beforeAddress + soonAddress;
						if (afterAddress.length <= 500) {
							$("#addressValue").val(afterAddress);
						} else {
							alert("地址总长度超出上限");
							return false;
						}
					} else {
						alert("地址不能为空");
						return false;
					}
				});
			});

	function add(customerId) {
		$(".shade").show();
		$(".addRecord").show();
		$("#custoemrId").val(customerId);
	}
	function updates(elem) {
		$(".shade").show();
		$(".addRecord").show();
		var id = $(elem).parent().find("input:first").val();
		var contactWay = $(elem).parent().parent().find("td:first").text();
		var contactAddress = $(elem).parent().parent().find("td:eq(1)").text();
		var contactContent = $(elem).parent().parent().find("td:eq(2)").text();
		$("#contId").val(id);
		$("#contactWays").val(contactWay);
		$("#s2id_contactWays").find("a:first").find("span:first").html(contactWay);
		$("#addresses").val(contactAddress);
		$("#contents").val(contactContent);
		$("#custoemrId").val($("#customerIds").val());
	}
	function cancel() {
		$(".addRecord").hide();
		$(".shade").hide();
	}

	function side() {
		$(".allIndustry").show();
		$(".shade").show();
	}

	function cancelSelect() {
		$(".allIndustry").hide();
		$(".shade").hide();
	}

	function addIndustry(customerId) {
		var isAllow = $("#isAllow").val();
		var industryId = $("#industryId").val();
		if (industryId.length > 0 && industryId != "" && isAllow == "true") {
			window.location = "${ctx}/crm/findcustomer/findCustomer/addIndustry?customerId="
					+ customerId + "&industryId=" + industryId;
		} else {
			alert("请选择正确的行业");
		}
	}

	function deleteAddress(customerId, address) {
		confirmx(
				'确认要删除该地址吗？',
				function() {
					//获得客户所有的行业字符串
					var addressStr = "${findCustomer.address}";
					//将行业分割成字符串数组
					var addressArr = addressStr.split(",");
					//处理字符串
					var index = -1;
					for ( var i = 0; i < addressArr.length; i++) {
						if (addressArr[i] == address) {
							index = i;
							break;
						}
					}
					if (index >= 0) {
						addressArr.splice(index, 1);
					} else {
						alert("没有找到指定元素");
					}
					addressStr = addressArr.join(",");
					document
							.write("<form action='${ctx}/crm/findcustomer/findCustomer/updateAddress' name='deleteAddress' method='post'  style='display:none'>");
					document
							.write("<input type='hidden' id='abc' name='address' value='"+addressStr+"'/>");
					document
							.write("<input type='hidden' name='id' value='${findCustomer.id}'/>");
					document.write("</form>");
					document.deleteAddress.submit();
				});

	}

	/* 展示添加地址弹框 */
	function showAddAddress(customerId) {
		$(".shade").show();
		$(".addAddress").show();

	}
	function cancelAddAddress() {
		$(".shade").hide();
		$(".addAddress").hide();
	}
</script>
<style type="text/css">
.recordtable td {
	border: 1px red solid;
}

.addRecord {
	display: none;
	position: fixed;
	width: 605px;
	top: 20%;
	left: 27%;
	z-index: 1000;
	background: #FFFFFF;
}

.shade {
	display: none;
	width: 100%;
	height: 100%;
	background: black;
	position: fixed;
	z-index: 999; opacity：0 .5;
	filter: alpha(opacity =        50);
	/* ie 有效*/
	-moz-opacity: 0.5; /* Firefox  有效*/
	opacity: 0.5;
	width: 100%; /* 通用，其他浏览器  有效*/
}

.addRecordTitle {
	margin: 20px 0px 10px 10px;
	border-bottom: 2px #72AD32 solid;
	height: 20px;
}

.allIndustry,.addAddress {
	padding: 10px;
	position: fixed;
	width: 300px;
	top: 20%;
	left: 35%;
	z-index: 1000;
	background: #FFFFFF;
	position: fixed;
}

.allIndustry .selectIndustry,.addAddress .addressInput {
	border-bottom: 2px solid #0F7638;
	margin-bottom: 10px;
	font-size: 15px;
}

#contentRecordTable td {
	width: 100%;
	word-break: keep-all; /* 不换行 */
	white-space: nowrap; /* 不换行 */
	overflow: hidden; /* 内容超出宽度时隐藏超出部分的内容 */
	text-overflow: ellipsis;
}

.myBtnsDiv {
	width: 120px;
	position: fixed;
	top: 10%;
	right: 5%;
	text-align: center;
	background-color: #E9E9E9;
	border-top-left-radius: 20px; /*只有Mozilla/Firefox 和 Safari 3支持该属性*/
	-moz-border-top-left-radius: 20px; /* 老的 Firefox */
	-webkit-border-top-left-radius：20px; /*苹果、谷歌等webkit内核浏览器认*/
	background: rgba(233, 233, 233, 0.3);
}
</style>
</head>
<body>
	<div class="shade"></div>
	<ul class="nav nav-tabs">
		<li>
			<a href="${ctx}/crm/findcustomer/findCustomer/">客户查询列表</a>
		</li>
		<li class="active">
			<a href="javascript:void(0)">客户详情</a>
		</li>
	</ul>
	<br />
	<form:form id="inputForm" modelAttribute="findCustomer" action="${ctx}/crm/findcustomer/findCustomer/save" method="post" class="form-horizontal">
		<div>
			<form:hidden path="id" id="customerIds" />
			<sys:message content="${message}" />
			<div class="control-group">
				<label class="control-label">公司名：</label>
				<div class="controls">
					<form:input path="name" htmlEscape="false" maxlength="100" class="input-xlarge required" />
				</div>
			</div>
			<%-- <div class="control-group">
				<label class="control-label">地址：</label>
				<div class="controls">
					<form:input path="address" htmlEscape="false" maxlength="150" class="input-xlarge " />
				</div>
			</div> --%>
			<div class="control-group">
				<label class="control-label">公司简介：</label>
				<div class="controls">
					<form:textarea path="content" htmlEscape="false" style="resize:none;width:690px;height:200px;" rows="4" maxlength="500" class="input-xxlarge " />
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">公司网站：</label>
				<div class="controls" style="font-size: 17px;">
					<a href="${findCustomer.website }" target="_blank">${findCustomer.website }</a>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">上次联系时间：</label>
				<div class="controls">
					<input name="lastContact" type="text" readonly="readonly" style="width: 270px;" class="input-medium Wdate " value="<fmt:formatDate value="${findCustomer.lastContact}" pattern="yyyy-MM-dd HH:mm:ss"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});" />
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">状态：</label>
				<div class="controls">
					<form:input path="statusId" htmlEscape="false" maxlength="64" class="input-xlarge " disabled="true" />
					<shiro:hasPermission name="findcustomer:findCustomer:updateBase">
						<span class="isCollecter">
							<input onclick="javascript:window.location='${ctx }/crm/findcustomer/findCustomer/toUpdateBase?customerId=${findCustomer.id}'" class="btn" type="button" value="修改基本信息" style="margin-left: 80px;" />
						</span>
					</shiro:hasPermission>
				</div>
			</div>
		</div>
		<div style="margin-left: 80px;" class="control-group">
			<label style="font-size: 15px; margin-top: 10px">所有地址</label>
			<shiro:hasPermission name="findcustomer:findCustomer:addAddress">
				<!-- TODO 添加地址按钮 -->
				<span class="isCollecter" style="position: relative; bottom: 2px;">
					<%-- <input onclick="showAddAddress('${findCustomer.id}')" class="btn" type="button" value="添加地址" /> --%>
					<a onclick="showAddAddress('${findCustomer.id}')" href="javascript:void(0)">
						<img style="width: 16px; height: 16px;" title="添加地址" alt="添加地址" src="${ctxStatic}/businessImg/add.png">
					</a>
				</span>
			</shiro:hasPermission>
			<table id="addressTable" class="table table-striped table-bordered table-condensed" style="margin: auto 0; width: 800px;">
				<thead>
					<tr>
						<th>地址</th>
						<shiro:hasPermission name="findcustomer:findCustomer:deleteAddress">
							<th class="isCollecter" id="addressCaoZuo">操作</th>
						</shiro:hasPermission>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${fn:split(findCustomer.address,',') }" var="address">
						<tr>
							<td class="address">${address}</td>
							<shiro:hasPermission name="findcustomer:findCustomer:deleteAddress">
								<td class="deleteAddress isCollecter" id="deleteAddressTd">
									<a id="deeteAddress" href="javascript:void(0)" onclick="deleteAddress('${findCustomer.id}','${address }')">删除</a>
								</td>
							</shiro:hasPermission>
						</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>
		<div style="margin-left: 80px;" class="control-group">
			<label style="font-size: 15px; margin-top: 10px">行业列表</label>
			<span class="isCollecter" style="position: relative; bottom: 2px;">
				<shiro:hasPermission name="findcustomer:findCustomer:addIndustry">
					<!-- <input onclick="side()" class="btn" type="button" value="添加行业" /> -->
					<a onclick="side()" href="javascript:void(0)">
						<img style="width: 16px; height: 16px;" title="添加行业" alt="添加行业" src="${ctxStatic}/businessImg/add.png">
					</a>
				</shiro:hasPermission>
			</span>
			<table id="industryTable" class="table table-striped table-bordered table-condensed" style="margin: auto 0; width: 800px;">
				<thead>
					<tr>
						<th>行业名</th>
						<shiro:hasPermission name="findcustomer:findCustomer:deleteIndustry">
							<th class="isCollecter" id="industryCaoZuo">操作</th>
						</shiro:hasPermission>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${industrys }" var="industry">
						<tr>
							<td>${industry.label}</td>
							<shiro:hasPermission name="findcustomer:findCustomer:deleteIndustry">
								<td id="deleteIndustry" class="deleteIndustry isCollecter">
									<a id="deete" href="${ctx}/crm/findcustomer/findCustomer/deleteIndustry?industryId=${industry.id}&customerId=${findCustomer.id}" onclick="return confirmx('确认要删除该行业吗？', this.href)">删除</a>
								</td>
							</shiro:hasPermission>
						</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>
		<div style="margin-left: 80px;" class="control-group">
			<label style="font-size: 15px;">联系人列表</label>
			<shiro:hasPermission name="findcustomer:findCustomer:addLinkMan">
				<span class="isCollecter">
					<%-- <input onclick="javascript:window.location='${ctx}/crm/business/hycrmContact/form?customerId=${findCustomer.id}'" class="btn" type="button" value="添加联系人" style="position: relative; bottom: 2px;" /> --%>
					<a onclick="javascript:window.location='${ctx}/crm/business/hycrmContact/form?customerId=${findCustomer.id}'" href="javascript:void(0)">
						<img style="width: 16px; height: 16px;" title="添加联系人" alt="添加联系人" src="${ctxStatic}/businessImg/add.png">
					</a>
				</span>
			</shiro:hasPermission>
			<table id="contentTable" class="table table-striped table-bordered table-condensed" style="margin: auto 0; width: 800px;">
				<thead>
					<tr>
						<th>姓名</th>
						<th>性别</th>
						<th>职位</th>
						<th>座机</th>
						<th>手机号码</th>
						<shiro:hasPermission name="findcustomer:findCustomer:deleteLinkMan">
							<th class="isCollecter">操作</th>
						</shiro:hasPermission>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${contacts }" var="contact">
						<tr>
							<td>
								<a href="${ctx}/crm/business/hycrmContact/formChange?id=${contact.id}"> ${contact.name} </a>
							</td>
							<td>${contact.sex }</td>
							<td>${contact.post }</td>
							<td>${contact.phone}</td>
							<td>${contact.mobile }</td>
							<shiro:hasPermission name="findcustomer:findCustomer:deleteLinkMan">
								<td class="isCollecter">
									<a href="${ctx}/crm/business/hycrmContact/delete?id=${contact.id}&customerId=${contact.customerId}" onclick="return confirmx('确认要删除该联系人吗？', this.href)">删除</a>
								</td>
							</shiro:hasPermission>
						</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>
		<div style="margin-left: 80px;" class="control-group">
			<label style="font-size: 15px;">项目列表</label>
			<shiro:hasPermission name="findcustomer:findCustomer:addProject">
				<span class="isCollecter">
					<%-- <input onclick="javascript:window.location='${ctx}/crm/business/businessProject/form?customerId=${findCustomer.id}'" class="btn" type="button" value="添加项目" style="position: relative; bottom: 2px;" /> --%>
					<a onclick="javascript:window.location='${ctx}/crm/business/businessProject/form?customerId=${findCustomer.id}'" href="javascript:void(0)">
						<img style="width: 16px; height: 16px;" alt="添加项目" title="添加项目" src="${ctxStatic}/businessImg/add.png">
					</a>
				</span>
			</shiro:hasPermission>
			<table id="contentTable" class="table table-striped table-bordered table-condensed" style="width: 800px;">
				<thead>
					<tr>
						<th>项目名称</th>
						<th>项目状态</th>
						<th>开始时间</th>
						<th>结束时间</th>
						<%-- <shiro:hasPermission name="findcustomer:findCustomer:edit"> --%>
						<th class="isCollecter">操作</th>
						<%-- </shiro:hasPermission> --%>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${projects }" var="project">
						<tr>
							<td>
								<a href="${ctx}/crm/project/project/form?id=${project.id}"> ${project.name} </a>
							</td>
							<td>${project.status }</td>
							<td>
								<fmt:formatDate value="${project.beginTime }" pattern="yyyy-MM-dd HH:mm:ss" />
							</td>
							<td>
								<fmt:formatDate value="${project.endTime }" pattern="yyyy-MM-dd HH:mm:ss" />
							</td>
							<td class="isCollecter">
								<shiro:hasPermission name="findcustomer:findCustomer:updateProject">
									<a href="${ctx}/crm/business/businessProject/formChange?id=${project.id}&customerId=${project.customerId}">修改</a>
								</shiro:hasPermission>
								<shiro:hasPermission name="findcustomer:findCustomer:deleteProject">
									<a href="${ctx}/crm/business/businessProject/delete?id=${project.id}" onclick="return confirmx('确认要删除该联项目吗？', this.href)">删除</a>
								</shiro:hasPermission>
							</td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>
		<div style="margin-left: 80px;">
			<label style="font-size: 15px;">最近10次联系记录</label>
			<shiro:hasPermission name="findcustomer:findCustomer:addContactRecord">
				<span class="isCollecter">
					<%-- <input id="addRecord" onclick="add('${findCustomer.id}')" class="btn" type="button" value="添加记录" style="position: relative; bottom: 2px;" /> --%>
					<a onclick="add('${findCustomer.id}')" href="javascript:void(0)">
						<img style="width: 16px; height: 16px;" alt="添加联系记录" title="添加联系记录" src="${ctxStatic}/businessImg/add.png">
					</a>
				</span>
			</shiro:hasPermission>
			<shiro:hasPermission name="findcustomer:findCustomer:showAllContactRecord">
				<span>
					<input id="showAllRecord" onclick="window.location='${ctx }/crm/findcustomer/allRecords/list?customerId=${findCustomer.id}'" class="btn" type="button" value="查看所有" style="position: relative; bottom: 2px;" />
				</span>
			</shiro:hasPermission>
			<table id="contentRecordTable" class="table table-striped table-bordered table-condensed" style="margin: auto 0; table-layout: fixed; width: 800px; table-layout: fixed;">
				<thead>
					<tr>
						<!-- <th>持续时间</th> -->
						<th>联系方式</th>
						<th>联系地址</th>
						<th style="width: 50%">联系内容</th>
						<th>创建人</th>
						<th>创建时间</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${records }" var="record">

						<tr>

							<%-- <td>
								<fmt:formatDate value="${record.durationTime }" pattern="yyyy-MM-dd HH:mm:ss" />
							</td> --%>
							<td style="word-break: keep-all; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" title="${record.contactWay }">${record.contactWay }</td>
							<td style="word-break: keep-all; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" title="${record.address }">${record.address }</td>
							<td style="word-break: keep-all; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" title="${record.content }">${record.content }</td>
							<td title="${record.createUser }">${record.createUser }</td>
							<td>
								<fmt:formatDate value="${record.createDate }" pattern="yyyy-MM-dd HH:mm:ss" />
							</td>
								<td>
									<input type="hidden" value="${record.id}" />
									<a href="javascript:void(0)" onclick="updates(this)">修改</a>
									<shiro:hasPermission name="findcustomer:findCustomer:showDelCustomerContant">
									<a href="${ctx}/crm/findcustomer/findCustomer/delCustomerContant?contactid=${record.id}&customerid=${findCustomer.id}" onclick="return confirmx('确定要删除吗?',this.href)">删除</a>
									</shiro:hasPermission>
								</td>
						
						</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>
		<div class="form-actions">
			<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)" />
		</div>
	</form:form>

	<!-- 添加联系记录弹框 -->
	<div class="addRecord">
		<form:form id="addContactRecords" action="${ctx}/crm/findcustomer/findCustomer/addRecord" modelAttribute="record">
			<div class="addRecordTitle">
				<font style="color: #72AD32">添加联系记录</font>
			</div>
			<div style="margin-top: 20px; margin-left: 20px;">
				<form:hidden path="customerId" id="custoemrId" />
				<form:hidden path="id" id="contId" />
				<span>联系方式：</span>
				<form:select style="width:275px;" path="contactWay" id="contactWays">
					<form:option value="线上联系">线上联系</form:option>
					<form:option value="电话联系">电话联系</form:option>
					<form:option value="线下联系">线下联系</form:option>
				</form:select>
				<br>
				<br>
				<span>联系地址：</span>
				<form:input maxlength="100" style="width:265px;" path="address" id="addresses" />
				<label style="color: #888888">最多100个字符</label>
				<br>
				<br>
				<span>
					联系内容：
					<label style="color: #888888">最多200个字符</label>
				</span>
				<form:textarea id="contents" style="resize:none;width:525px;height:120px;" path="content" maxlength="200" />
				&nbsp;
				<br>
				<input id="saveRecord" class="btn" type="submit" value="保存" style="margin-left: 35px;" />
				<input id="cancelAddRecord" onclick="cancel()" class="btn" type="button" value="取消" style="margin-left: 10px;" />
			</div>
			<sys:message content="${message}" />
		</form:form>
	</div>

	<!-- 添加行业弹框 -->
	<div class="allIndustry" style="display: none;">
		<div class="selectIndustry">请选择行业</div>
		<div>
			<select style="width: 300px;" id="industryId">
				<option value="">请选择</option>
				<c:forEach items="${allIndustrys }" var="industry">
					<option value="${industry.id }">${industry.label }</option>
				</c:forEach>
				<form>
					<input type="hidden" value="${findCustomer.id}" id="customerId" />
					<input type="hidden" value="true" id="isAllow">
				</form>
			</select>
		</div>
		<span id="isExist" style="color: red; display: none">行业已存在</span>
		<div style="margin-top: 20px;">
			<input id="addRecord" onclick="addIndustry('${findCustomer.id}')" class="btn" type="button" value="添加" style="margin-left: 50px;" />
			<input id="addRecord" onclick="cancelSelect()" class="btn" type="button" value="取消" style="margin-left: 10px;" />
		</div>
	</div>

	<!-- 添加地址弹框 -->
	<div class="addAddress" style="display: none">
		<div class="addressInput">请输入地址</div>
		<div style="margin-top: 20px;">
			<form id="updateAddressAB" action="${ctx}/crm/findcustomer/findCustomer/updateAddress" method="post">
				<input type="hidden" name="id" value="${findCustomer.id }">
				<input type="hidden" id="addressValue" name="address" value="">
				<input type="text" style="width: 90%" id="addressIn">
				<br>
				<button type="submit" class="btn">确定</button>
				<button type="button" onclick="cancelAddAddress()" class="btn">取消</button>
			</form>
		</div>
	</div>

	<script type="text/javascript">
		function isOpen() {
			$("#myBtns").slideToggle(
					function() {
						if ($("#myBtns").css("display") == "none") {
							$("#on_off").attr("src",
									"${ctxStatic }/businessImg/open.png");
						} else {
							$("#on_off").attr("src",
									"${ctxStatic }/businessImg/close.png");
						}
					});
		}
	</script>


	<div class="myBtnsDiv" id="myBtnsDiv">
		<div style="height: 20px; margin-bottom: 5px; margin-top: 5px;">
			<div style="line-height: 20px;">
				<span style="font-size: 15px;">按钮</span>
				<label>
					<a href="javascript:void(0)" onclick="isOpen()" style="position: relative; top: -2px;">
						<img id="on_off" alt="关闭" title="关闭" src="${ctxStatic }/businessImg/close.png" />
					</a>
				</label>
			</div>
		</div>
		<div style="border-top: 2px #DADADA solid; padding-top: 10px; padding-bottom: 5px;" id="myBtns" style="margin: 5px;">
			<div>
				<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)" />
			</div>
			<br>
			<div>
				<input class="btn" type="button" value="工作台" onclick="javascript:window.location='${ctx}/crm/workbench/workbench'" />
			</div>
			<br>
			<div>
				<input class="btn" type="button" value="商机录入" onclick="javascript:window.location='${ctx}/crm/business/customer/form'" />
			</div>
			<br>
			<div id="myBtn_AddMyCollect">
				<input class="btn" type="button" value="加入我的客户" onclick="javascript:window.location='${ctx}/crm/findcustomer/findCustomer/addMyCustomer?customerId=${findCustomer.id }'" />
			</div>
		</div>
	</div>
</body>
</html>